% 20 MHz, Aggreg. 1
SNR20_1 = 0:.2:14.2;
Pe20_0_1 = [1.000000e+00,
9.937695e-01,
9.939759e-01,
9.975430e-01,
1.000000e+00,
9.920424e-01,
9.909183e-01,
9.892828e-01,
9.864956e-01,
9.764208e-01,
9.706979e-01,
9.608957e-01,
9.503197e-01,
9.206025e-01,
9.015217e-01,
8.755661e-01,
8.439914e-01,
8.141000e-01,
7.686000e-01,
7.302000e-01,
6.813000e-01,
6.358000e-01,
5.793000e-01,
5.319000e-01,
4.884000e-01,
4.318000e-01,
3.960000e-01,
3.441000e-01,
3.157000e-01,
2.649000e-01,
2.352000e-01,
1.950000e-01,
1.748000e-01,
1.469000e-01,
1.240000e-01,
1.002000e-01,
9.160000e-02,
7.320000e-02,
6.010000e-02,
5.030000e-02,
4.650000e-02,
3.870000e-02,
2.510000e-02,
2.650000e-02,
1.920000e-02,
1.360000e-02,
1.360000e-02,
9.400000e-03,
8.100000e-03,
6.400000e-03,
4.700000e-03,
3.900000e-03,
4.200000e-03,
2.800000e-03,
2.600000e-03,
1.100000e-03,
6.000000e-04,
9.000000e-04,
3.000000e-04,
6.000000e-04,
5.000000e-04,
2.000000e-04,
0.000000e+00,
3.000000e-04,
2.000000e-04,
1.000000e-04,
1.000000e-04,
1.000000e-04,
0.000000e+00,
2.000000e-04,
0.000000e+00,
2.000000e-04,];
% 20 MHz, Aggregation 2

SNR20_2 = 0:.2:7.8;

Pe20_1A_4 = [3.782772e-01,
3.060606e-01,
2.576531e-01,
2.205240e-01,
1.797153e-01,
1.483113e-01,
1.128492e-01,
8.639863e-02,
7.520477e-02,
4.764151e-02,
4.007937e-02,
3.485162e-02,
2.551149e-02,
1.706946e-02,
1.557921e-02,
1.191178e-02,
7.700000e-03,
6.100000e-03,
4.600000e-03,
3.600000e-03,
2.800000e-03,
1.000000e-03,
1.600000e-03,
7.000000e-04,
7.000000e-04,
2.000000e-04,
7.000000e-04,
2.000000e-04,
0.000000e+00,
1.000000e-04,
0.000000e+00,
1.000000e-04,
3.000000e-04,
1.000000e-04,
1.000000e-04,
0.000000e+00,
0.000000e+00,
0.000000e+00,
0.000000e+00,
1.000000e-04];

Pe20_0_2 = [9.101124e-01,
8.666667e-01,
8.418367e-01,
8.209607e-01,
7.064057e-01,
6.842878e-01,
6.458101e-01,
5.585971e-01,
5.227103e-01,
4.424528e-01,
3.678571e-01,
3.443754e-01,
2.990654e-01,
2.487747e-01,
2.117847e-01,
1.732516e-01,
1.415000e-01,
1.215000e-01,
1.003000e-01,
8.190000e-02,
7.210000e-02,
5.410000e-02,
4.980000e-02,
4.030000e-02,
3.320000e-02,
2.830000e-02,
2.200000e-02,
1.800000e-02,
1.470000e-02,
1.370000e-02,
7.300000e-03,
6.900000e-03,
6.200000e-03,
6.100000e-03,
4.400000e-03,
2.900000e-03,
2.800000e-03,
2.300000e-03,
1.300000e-03,
9.000000e-04];

% 20 MHz, Aggregation 4
SNR20_4=-1:.2:5;

Pe20_0_4=[6.352201e-01,
6.477987e-01,
5.674157e-01,
4.902913e-01,
4.639640e-01,
3.568905e-01,
3.399340e-01,
2.044534e-01,
1.833031e-01,
1.806798e-01,
1.246914e-01,
1.000000e-01,
8.231459e-02,
5.670971e-02,
5.121704e-02,
3.827207e-02,
2.626105e-02,
2.319706e-02,
1.561534e-02,
1.273323e-02,
9.200000e-03,
7.500000e-03,
3.800000e-03,
3.300000e-03,
2.900000e-03,
1.700000e-03,
1.900000e-03,
1.200000e-03,
9.000000e-04,
5.000000e-04,
3.000000e-04];

% 20 MHz, Aggreg. 8

SNR20_8=-2:.2:3;

Pe20_1A_8 = [2.911051e-01,
2.416268e-01,
1.687657e-01,
1.532625e-01,
1.142534e-01,
1.043339e-01,
7.401448e-02,
5.384184e-02,
4.067460e-02,
3.472572e-02,
1.991239e-02,
1.832461e-02,
1.257157e-02,
1.022118e-02,
7.800000e-03,
4.600000e-03,
3.900000e-03,
2.200000e-03,
1.700000e-03,
1.300000e-03,
9.000000e-04,
5.000000e-04,
5.000000e-04,
5.000000e-04,
0.000000e+00,
1.000000e-04];

Pe20_0_8=[2.722372e-01,
2.631579e-01,
1.989924e-01,
1.654021e-01,
1.289593e-01,
1.011236e-01,
8.447305e-02,
6.001122e-02,
5.109127e-02,
4.126824e-02,
3.464755e-02,
2.792321e-02,
1.817277e-02,
1.558311e-02,
9.600000e-03,
8.600000e-03,
6.000000e-03,
5.300000e-03,
2.700000e-03,
2.600000e-03,
1.900000e-03,
1.000000e-03,
4.000000e-04,
4.000000e-04,
4.000000e-04,
1.000000e-04];

semilogy(SNR20_2,Pe20_1A_4,'b+-;Fmt1A-4;','markersize',10,SNR20_8,Pe20_1A_8,'r+-;Fmt1A-8;','markersize',10,SNR20_8,Pe20_0_8,'r*-;Fmt0-8;','markersize',10,SNR20_4,Pe20_0_4,'b*-;Fmt0-4;','markersize',10,SNR20_2,Pe20_0_2,'g*-;Fmt0-2;','markersize',10,SNR20_1,Pe20_0_1,'k*-;Fmt0-1;','markersize',10)
axis([-2 12 1e-3 1])
title('20 MHz AWGN PDCCH Performance (with Ch. Est.)')
xlabel('SNR (dB)')
ylabel('Pe')
